//
//  DBHomeModel.swift
//  DBCA
//
//  Created by mugua on 2024/7/4.
//

import Foundation
import ObjectMapper

enum DBHomeSectionType: String {
    case DBHomeSectionType_Banner = "chance1"
    case DBHomeSectionType_LargeCard  = "chance2"
    case DBHomeSectionType_SmallCard  = "chance3"
    case DBHomeSectionType_Repay    = "chance4"
    case DBHomeSectionType_ProductList  = "chance5"
}

struct DBHomeApplyAlertModel: Mappable {
    
    var golden: String?
    var suitably: String?
    var hundreds: [[String: Any]]?
    
    init?(map: Map) {
    }

    mutating func mapping(map: Map) {
        golden <- map["golden"]
        suitably <- map["suitably"]
        hundreds <- map["hundreds"]
    }
}

struct DBHomeApplyModel: Mappable {
    
    var meant: DBHomeApplyAlertModel?
    var advice: String?
    
    init?(map: Map) {
    }

    mutating func mapping(map: Map) {
        meant <- map["meant"]
        advice <- map["advice"]
    }
}

struct DBHomeUnwinkinglyModel: Mappable {
    
    var magnanimous: String?
    var managed: String?
    
    init?(map: Map) {
    }

    mutating func mapping(map: Map) {
        magnanimous <- map["magnanimous"]
        managed <- map["managed"]
    }
}

struct DBHomePrickModel: Mappable {
    
    var colossal: DBHomeSectionType?
    var workin: [DBHomeWorkinModel]?
    
    init?(map: Map) {
    }

    mutating func mapping(map: Map) {
        colossal <- map["colossal"]
        workin <- map["workin"]
    }
}

struct DBHomeWorkinModel: Mappable {
    
    var pitched: String?
    var nod: String?
    var wrestling: String?
    var indian: String?
    var paul: String?
    var pierre: String?
    var table: String?
    var weaker: String?
    var played: String?
    var doors: String?
    var clear: String?
    var gate: String?
    var chest: String?
    var logan: String?
    var martin: String?
    var rennie: String?
    var opinion: String?
    var suds: String?
    var springtime: String?
    var leap: String?
    var overside: String?
    var descript: String?
    
    var golden: String?
    var upper: String?
    var suitably: String?
    var advice: String?
    
    
    init?(map: Map) {
    }

    mutating func mapping(map: Map) {
        pitched <- (map["pitched"], MapperTransform.stringValueTransform)
        nod <- map["nod"]
        wrestling <- map["wrestling"]
        indian <- map["indian"]
        paul <- map["paul"]
        pierre <- map["pierre"]
        table <- map["table"]
        weaker <- map["weaker"]
        played <- map["played"]
        doors <- map["doors"]
        clear <- map["clear"]
        gate <- map["gate"]
        chest <- map["chest"]
        logan <- map["logan"]
        martin <- map["martin"]
        rennie <- map["rennie"]
        opinion <- map["opinion"]
        suds <- map["suds"]
        springtime <- map["springtime"]
        leap <- map["leap"]
        overside <- map["overside"]
        golden <- map["golden"]
        upper <- map["upper"]
        suitably <- map["suitably"]
        advice <- map["advice"]
        descript <- map["descript"]
        
    }
}


struct DBHomeModel: Mappable {
    
    var unwinkingly: DBHomeUnwinkinglyModel?
    var prick: [DBHomePrickModel]?
    
    init?(map: Map) {
    }

    mutating func mapping(map: Map) {
        unwinkingly <- map["unwinkingly"]
        prick <- map["prick"]
    }
}
